﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Listmonth.aspx.cs" Inherits="dzs.Web.Admin.monthsked.Listmonth" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
       <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    <script src="../../My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .auto-style1 {
            width: 575px;
        }
        .auto-style2 {
            width: 38px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td align="right" class="auto-style2" >
                        </td>
                    <td class="auto-style1">                       
                       <b>项目名：</b> <asp:TextBox ID="txtKeyword2" runat="server" Width="84px"></asp:TextBox>   <b>供应商：</b>
                    <asp:TextBox ID="txtKeyword" runat="server" Width="91px"></asp:TextBox>
                         <b>中标批次：</b>
                    <asp:TextBox ID="txtwinbid" runat="server" Width="91px"></asp:TextBox>
                    &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    &nbsp;</td>
                    <td class="tdbg">
                        分配日期为：<asp:Label ID="lblmsg" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="1500px" 
            BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" 
            GridLines="None"  OnPageIndexChanging ="gridView_PageIndexChanging"
                     DataKeyNames="monthSupplyPlanId" 
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" 
            onrowdatabound="gridView_RowDataBound" PageSize="20">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                        <HeaderTemplate>
                                    <input id="Checkbox1" type="checkbox" onclick="chall(this)" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" runat="server" />
                                </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="proid" HeaderText="项目编号"  ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="projectName" HeaderText="项目名"  ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="material" HeaderText="物料描述"  ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="thisMonthCount" HeaderText="本月供应量" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="supplyDate" DataFormatString="{0:D}" HeaderText="供应年月" />
                        <asp:BoundField DataField="sname" HeaderText="供应商" />
                            
                            <asp:BoundField DataField="winbid" HeaderText="中标批次" />
                            
                            <asp:BoundField DataField="user_name" HeaderText="配送管理员" />
                            
                            <asp:TemplateField HeaderText="是否等待发货前质量确认">
                                <ItemTemplate>
                                    <asp:Label ID="lbl_isGoodsQualityStatus" runat="server" 
                                        Text='<%# Bind("isGoodsQualityStatus") %>'></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" 
                                        Text='<%# Bind("isGoodsQualityStatus") %>'></asp:TextBox>
                                </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发货前质量确认">
                            <ItemTemplate>
                                <asp:Label ID="lbl_goodsQualityStatus" runat="server" 
                                    Text='<%# Bind("goodsQualityStatus") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" 
                                    Text='<%# Bind("goodsQualityStatus") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                            
                        </Columns>

<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                       <b>抽检实施单位：</b> <asp:TextBox ID="txtspotunit" runat="server" Width="84px"></asp:TextBox>  <b>计划日期：</b> <asp:TextBox ID="txtplandate" runat="server" Width="84px" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>   <b>抽检样品数量：</b><asp:TextBox id="txtspotnum" runat="server" Width="33px"></asp:TextBox>
                    <b>
		
	                   抽检方式：<asp:TextBox id="txtspottype" runat="server" Width="114px"></asp:TextBox>
                        <br />
		
	                    抽检主要内容：</b><asp:TextBox id="txtspotcontent" runat="server" Width="200px" Height="102px" TextMode="MultiLine"></asp:TextBox>
	                    &nbsp;&nbsp;<asp:Button ID="btnOK" runat="server" Text="确定" OnClick="btnOK_Click" OnClientClick="return chtest()"/>                       
                    </td>
                </tr>
            </table>
</asp:Content>
